package main

import (
	"flag"
	"log"

	"gitee.com/xuender/synergy"
)

func main() {
	log.Println("启动")
	addr := flag.String("addr", "localhost:8080", "http service address")
	flag.Parse()
	for _, v := range flag.Args() {
		log.Println(v)
	}
	if len(flag.Args()) == 0 {
		synergy.Service(*addr)
	} else {
		synergy.Client(flag.Args()[0])
	}
}
